package com.cangmaomao.m_mePen.contract

import android.content.Context
import android.view.ViewGroup
import com.cangmaomao.lib.base.BasePresenter
import com.cangmaomao.lib.base.BaseView
import com.cangmaomao.m_mePen.bean.Login
import io.reactivex.disposables.Disposable
import okhttp3.Response

interface LoginContract {

    interface View : BaseView<Presenter> {

        fun context(): Context

        fun mobile(): String

        fun password(): String

        fun layoutView(): ViewGroup

        fun loadMap(): Map<String, String>

        fun responseData(flag: Boolean, msg: String = "")

        fun requestFail(it: Throwable)

    }

    interface Presenter : BasePresenter {

        fun loadLogin():Disposable

        fun handleData(data: Login)
    }

}